#include "launch.h"
#include <QDebug>

int Launch::son = 0;
Launch::Launch(QObject *parent) : QObject(parent)
{
}
void Launch::timeout()
{
	while (son < 10)
	{
		QThread::sleep(1);
		emit this->signal(QString().sprintf("子线程ID：%p",QThread::currentThread()));
		qDebug() << QThread::currentThread();
		son++;
	}
}
